Add Vale check for missing punctuation between sentences #1898
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Vale check for missing punctuation between sentences
Summary
Added a new Vale style rule (
SentencePunctuation.yml) to detect missing punctuation between sentences in documentation. The rule flags cases like "This is a sentence This is another sentence." where punctuation is missing after the first sentence.The rule uses two heuristic patterns:
Key implementation details:
[ \t]+instead of\s+to match only same-line gaps (prevents false positives in code blocks)warninglevel andparagraphscopeReview & Testing Checklist for Human
vale fern/products/docs/pages/**/*.mdxto check for unexpected false positives across the documentation corpus<CodeBlock>components or fenced code blockswarning. Decide if it should remain a warning or be promoted toerrorto block PRs with missing punctuation.Test Plan
vale fern/products/docs/pages/navigation/overview.mdxvale test-file.mdxand verify it catches the bad examples without flagging the good onesNotes